package org.example.controller;

import org.example.common.CommonResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.rmi.server.ServerCloneException;

/**
 * @author WN
 * @date：2024/03/25 13:50
 */
@RestController
public class ProviderController {

    @GetMapping("/hi")
    public CommonResult<String> handle() throws ServerCloneException{
//        throw new ServerCloneException("账号异常");
        return CommonResult.error(401, "参数有误");
    }
}
